package com.dwms.controller;

import com.dwms.entity.Result;
import com.dwms.entity.api.request.ApiCommonRequest;
import com.dwms.service.GatewayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/api")
public class TestController {
    @Autowired
    private GatewayService gatewayService;

    @PostMapping("/handleApiBusiness")
    public Result handleApiBusiness(@RequestBody ApiCommonRequest queryRequest) {
        return gatewayService.handleApiBusiness(queryRequest);
    }
}
